package cn.service;

import cn.domain.Department;
import cn.domain.PageBean;
import cn.utils.HQLHelper;
import sun.jvm.hotspot.debugger.Page;

import java.util.List;

/**
 * Created by Administrator on 2017/3/14 0014.
 */
public interface DepartmentService {
    /**
     * 添加数据
     */
    public void save(Department department);
    /**
     * 查询所有部门
     */
    public List<Department> findAll();
    /**
     * 查询顶级部门
     */
    public List<Department> Top();
    /**
     * 查询下级部门
     */
   public List<Department> Down(Long id);
    /**
     * 查询单个
     */
    public Department getById(Long id);
    /**
     * 回显
     */
    public List<Department> getByIds(Long[] id);
    /**
     * 修改
     */
    public void update(Department department);
    /**
     * 删除
     */
    public void delete(Long id);
    /**
     * 分页数据
     */
    public PageBean getPageBean(HQLHelper hqlHelper,int currentPage);
}
